﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DefDutyList.aspx.cs" Inherits="UI.ModEmployee.DefDutyList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>职位列表（定义职位用）</title>
    <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
    <script type="text/javascript" src="../JS/jsFunction.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="pagetop" class="pagetop">
        <div class="pagetopleft">
            <b>定义职位字典</b></div>
        <div class="pagetopright">
            名称<asp:TextBox ID="txtSerWord" CssClass="InputCss" Width="70" runat="server"></asp:TextBox>
            <asp:DropDownList ID="ddlStatuType" runat="server">
                <asp:ListItem Selected="True" Value="">类别</asp:ListItem>
                <asp:ListItem Value="Y">开启项</asp:ListItem>
                <asp:ListItem Value="N">关闭项</asp:ListItem>
            </asp:DropDownList>
             <asp:DropDownList ID="ddlSortWay" runat="server">
                <asp:ListItem Selected="True" Value="Def">排序</asp:ListItem>
                <asp:ListItem Value="List">列表</asp:ListItem>
                <asp:ListItem Value="Sal">工资</asp:ListItem>
            </asp:DropDownList>
            <asp:Button ID="btnSearch" CssClass="InputCss" runat="server" Text="查询" OnClick="btnSearch_Click" />
            <asp:Button ID="btnAdd" CssClass="InputCss" runat="server" Text="增加" />
            <asp:Button ID="btnNoUse" runat="server" Width="90px" Text="关闭无用职位" CssClass="InputCss"
                OnClick="btnNoUse_Click" />
           
            <a href="#" onclick="javascript:window.location.reload()">
                    刷新</a>
        </div>
    </div>
    <asp:Panel ID="Panel1" runat="server" Height="460px" ScrollBars="Vertical" Width="100%">
        <asp:GridView ID="gvList" runat="server" AutoGenerateColumns="False" DataKeyNames="ID"
            Width="95%" CssClass="td" HorizontalAlign="Center" OnRowDataBound="gvList_RowDataBound">
            <AlternatingRowStyle BackColor="#F2F2ED" />
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:CheckBox ID="CheckBox1" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="ID" HeaderText="ID" Visible="False" ReadOnly="True" SortExpression="ID" />
                <asp:BoundField DataField="AbsIndex" HeaderText="列表顺序" SortExpression="AbsIndex" />
                <asp:TemplateField HeaderText="职位名称" SortExpression="Name">
                    <ItemTemplate>
                        <a href="javascript:ShowLink('DefDutyAdd.aspx?ID=<%# Eval("ID")%>',600,480)">
                            <%# Eval("Name")%></a>
                    </ItemTemplate>
                    <ItemStyle Width="120px" />
                </asp:TemplateField>
                <asp:BoundField DataField="OfDeptName" HeaderText="所属部门" SortExpression="OfDeptName" />
                <asp:BoundField DataField="TypeName" HeaderText="级别" SortExpression="TypeName" />
                <asp:BoundField DataField="SalIndex" HeaderText="工资顺序" SortExpression="SalIndex" />
                <asp:BoundField DataField="Memo" HeaderText="描述" SortExpression="Memo" />
                <asp:BoundField DataField="Statu" HeaderText="状态" ItemStyle-Width="50" SortExpression="Statu" />
            </Columns>
            <HeaderStyle BackColor="#009999" />
        </asp:GridView>
    </asp:Panel>
    <div style="margin-left: 28px">
        <table>
            <tr>
                <td style="width: 150px;">
                    <asp:Button ID="btnClose" runat="server" Text="关闭" OnClick="btnClose_Click" />
                    &nbsp;<asp:Button ID="btnOpen" runat="server" Text="开启" OnClick="btnOpen_Click" />
                    &nbsp;
                </td>
                <td style="width: 280px;">
                    &nbsp;<asp:TextBox ID="txtEmpCode" runat="server" CssClass="InputCss" MaxLength="15"
                        Width="60px"></asp:TextBox>
                    <a href="javascript:ShowLink('ZipSeaForIn.aspx',880,550)">
                        <img src="../Images/Search.gif" alt="搜索" width="27" height="12" border="0" /></a>
                    <asp:Button ID="btnGroup" runat="server" Text="加入职位组" CssClass="ButtonCss" OnClick="btnGroup_Click" />
                    <asp:Button ID="btnView" runat="server" Text="查看" CssClass="ButtonCss" />
                </td>
                <td style="width: 200px;">
                    <asp:DropDownList ID="ddlDutyType" runat="server" CssClass="InputCss">
                    </asp:DropDownList>
                    <asp:Button ID="btnType" runat="server" Text="设所属级别" CssClass="ButtonCss" 
                        onclick="btnType_Click" />
                </td>
                <td>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
